How to Fix 'NoneType' Error When Using Custom Dataset in PyTorch